
<div class="col-sm-12 mt20">
        
        <div class="panel panel-default">
          <div class="panel-body" style="padding-bottom:0;">
          <div class="col-sm-12 row">
            <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="标题" ng-model="info.searchtitle">
              </div>
              <div class="col-sm-2">
                <div class="form-group">
                        <select class="form-control" ng-model="info.tour_type" >
                            <option value="">请选择类型</option>
                            <option ng-value="0">周边</option>
                            <option ng-value="1">国内长线</option>
                            <option ng-value="2">国内当地参团</option>
                            <option ng-value="3">出境当地参团</option>
                            <option ng-value="4">出境短线</option>
                            <option ng-value="5">出境长线</option>
                            
                        </select>
                  </div>
              </div>
              <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="负责人姓名" ng-model="info.searchmanagger_name">
              </div>
              <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="身份证号" ng-model="info.searchmanagger_card_no">
              </div>
              <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="手机号" ng-model="info.searchmanagger_mobile">
              </div>
              <div class="col-sm-2">
                  <button class="btn btn-info search btn-block" ng-click="tour_list()">立即搜索</button>
              </div>
          </div>
            
          <div class="col-sm-12 row">
            
            <div class="col-sm-2 pull-right">
                <button class="btn btn-info search btn-block" ng-click="savetourinfo(1)">创建</button>
            </div>
          </div> 
        </div>
      
          <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
              <thead>
                <tr>
                  <th class="text-center col-sm-2">标题</th>
                  <th class="text-center col-sm-1">类型</th>
                  <th class="text-center col-sm-2">创建时间</th>
                  <th class="text-center col-sm-1">姓名</th>
                  <th class="text-center col-sm-2">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr ng-repeat="info in list">
                  <td class="text-center">{{info.title}}</td>
                  <td class="text-center">{{info.tour_type_name}}</td>
                  <td class="text-center">{{info.create_time}}</td>
                  <td class="text-center">{{info.managger_name}}</td>
                  <td class="text-center" ng-if="info.apply_state==1||info.apply_state==2">
                      <button type="button" class="btn btn-success btn-xs" ng-if="info.apply_state==1" ng-click="gettournfo(info.code)">审核已通过</button>
                      <button type="button" class="btn btn-xs" ng-if="info.apply_state==2" ng-click="gettournfo(info.code)">审核未通过</button>
                  </td>
                  <td class="text-center" ng-if="info.apply_state==0">
                    <button type="button" class="btn btn-info btn-xs" ng-click="gettournfo(info.code)">查看</button>
                    <button type="button" class="btn btn-success btn-xs" ng-click="updateup(info.code)"  ng-if="info.tour_state == 0">发起申请</button>
                    <button type="button" class="btn btn-warning btn-xs" ng-click="updatedown(info.code)"  ng-if="info.tour_state == 1">撤回申请</button>
                    <!-- <button type="button" class="btn btn-info btn-xs" ng-click="savetourinfo(info)" >修改信息</button> -->
                    <button type="button" class="btn btn-danger btn-xs" ng-click="delete(info.code)" ng-if="info.state != 1">删除</button>
                    <div class="btn-group" dropdown="" ng-if="info.tour_state == 0">
                        <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" >
                          编辑 <span class="caret"></span>  
                        </button>
                        <ul class="dropdown-menu" role="menu" >
                            <li>
                                <a ng-click="savetourinfo(info)" >基本信息</a>
                            </li>
                            <li>
                                <a ng-click="savetourbase(info.code)" >团期信息</a>
                            </li>
                            <li>
                                <a ng-click="savetourprice(info.code)" >价格信息</a>
                            </li>
                        </ul>
                    </div>


                  </td>
                </tr>
              </tbody>
            </table>
          </div>
      
          <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="totalItems" ng-model="currentPage" ng-change="search(currentPage)" previous-text="上一页"
              next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false"
              items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
          </div>
      
        </div>
      </div>